package org.dromara.event.domain.vo;

import java.util.Date;

import org.dromara.event.domain.PassAccess;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 出入记录视图对象 pass_access
 *
 * @author YI LH
 * @date 2025-05-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PassAccess.class)
public class PassAccessVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号")
    private String idCard;

    /**
     * 出入方式（0步行 1驾车）
     */
    @ExcelProperty(value = "出入方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=步行,1=驾车")
    private String accessType;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phoneNub;

    /**
     * 访问原因
     */
    @ExcelProperty(value = "访问原因")
    private String visitReason;

    /**
     * 进入时间
     */
    @ExcelProperty(value = "进入时间")
    private Date entryTime;

    /**
     * 离开时间
     */
    @ExcelProperty(value = "离开时间")
    private Date exitTime;

    /**
     * 车牌号
     */
    @ExcelProperty(value = "车牌号")
    private String licensePlate;


}
